#pragma once

#include <QWidget>
#include "ui_forget.h"
#include <iostream>
#include <QMessageBox>
#include <vector>
#include <QFile>
#include <qpainter.h>
#include <QTextStream>
#include "LogIn.h"
class forget : public QWidget
{
	Q_OBJECT

public:
	forget(QWidget *parent = nullptr);
	~forget();
	QString readSchool;
	QString readPassword;
	QString readQuestion;
	QString readAnwser;
	void paintEvent(QPaintEvent* event);
	friend void message(QString title, QString text, QMessageBox::Icon icon, QMessageBox::Button buttonType, QWidget* parent);

private:
	Ui::forgetClass ui;
private slots:
	void changepasswords();
};

void clearFile(const QString& filename);
